<?php

namespace app\api\controller;

use app\common\business\Goods as GoodsBis;
use app\common\lib\Show;

/**
 * 商城首页
 * Class Index
 * @package app\api\controller
 */
class Index extends ApiBase {

    /**
     * 商城轮播图
     * @return \think\response\Json
     */
    public function getRotationChart() {
        //halt(request());
        $result = (new GoodsBis())->getRotationChart();
        return Show::success($result);
    }

    /**
     * 推荐展示商品分类列表
     * @return \think\response\Json
     */
    public function categoryGoodsRecommend() {
        $result = (new GoodsBis())->categoryGoodsRecommend();
        return Show::success($result);
    }
}